source /etc/network/interfaces.d/*

# Local loopback
auto lo
iface lo inet loopback

# Interface wlan0
allow-hotplug wlan0
no-auto-down wlan0
iface wlan0 inet static				
	address 192.168.1.102
	netmask 24
	gateway 192.168.1.254
#	dns-nameservers 8.8.8.8
	dns-nameservers 208.67.222.222  #opendns.com 208.67.222.222 and 208.67.220.220
wpa-ssid your-ssid
#wpa-psk your-wifi-password

wpa-psk your-preshared-key ##generated using wpa_passphrase YOUR_SSID YOUR_SECRET_KEY